package demoMod.gdxform.interfaces;

public interface MouseEventSubscriber extends ISubscriber {
    boolean clickDown(int screenX, int screenY, int button);

    boolean clickUp(int screenX, int screenY, int button);

    boolean mouseDragged(int screenX, int screenY);

    boolean mouseMoved(int screenX, int screenY);

    boolean scrolled(int amount);

    /**
     * 鼠标移动到活动元素的边框上时触发
     * @param element 当前活动元素
     * @return 是否截断事件
     */
    boolean moveToElementBorder(Element element);
}
